package AbstractClass.AbstractClassDome002;

/**
 * ClassName:Frog
 * Package:AbstractClass.AbstractClassDome002
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/24-19:44
 * @Version:v1.0
 */
public class Frog extends Animal{
    public Frog() {
    }

    public Frog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(getName()+"在吃虫子");
    }
}
